home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / alsa-utils.preinst < prev    next >
Text File  |  2008-09-25  |  358b  |  25 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.   install|upgrade)
  7.     # Delete obsolete alsa-base dev.d symlinks
  8.     for N in 0 1 2 3 4 5 6 7 ; do
  9.         D="/etc/dev.d/snd/controlC$N"
  10.         if [ -d "$D" ] ; then
  11.             L="$D/alsa-base.dev"
  12.             rm -fv "$L"
  13.         fi
  14.     done
  15.     # Delete obsolete alsa-base dev.d script
  16.     rm -fv /etc/alsa/dev.d/alsa-base
  17.     ;;
  18.   abort-upgrade)
  19.     # Nothing to do
  20.     ;;
  21. esac
  22.  
  23.  
  24.  
  25.